<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文章编辑</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" crossorigin="anonymous">
</head>
<body>
    <div style="width: 500px;margin: 40px;">
        <form action="upd" method="post" enctype="multipart/form-data">
            <input type="hidden" value="{$id}" name="id">
            <div class="form-group">
                <label>文章标题</label>
                <input type="text" class="form-control" value="{$data->title}" name="title">
            </div>
            <div class="form-group">
                <label>文章图片</label>
                <input type="file" class="form-control" name="img">
            </div>
            <div>
                <label>文章内容</label>
                <input type="text" class="form-control" value="{$data->content}"name="content">
            </div>
            <br>
            <div>
                <label>文章状态</label>
                <input type="radio" name="state" value="显示" checked> 显示
                <input type="radio" name="state" value="不显示"> 不显示
            </div>
            <button type="submit" class="btn btn-primary">更新</button>
        </form>
    </div>
</body>
</html>